<?php
// Set the content type to Javascript
header("Content-type: text/javascript");

// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

$array = array(
   "joblist_url" => OC_Helper::linkToRoute('calendar_joblist'),
   "searchurl" => OC_Helper::linkToRoute('calendar_search'),
   "sendoffer" => OC_Helper::linkToRoute("calendar_sendoffer"),
   "setinterviewresult" => OC_Helper::linkToRoute("calendar_setinterviewresult"),
   "setofferresult" => OC_Helper::linkToRoute("calendar_setofferresult"),
   "declinesend" => OC_Helper::linkToRoute("calendar_declinesend"),
   "setinterviewfeedback" => OC_Helper::linkToRoute("calendar_setinterviewfeedback"),
   "feedbackpreview" => OC_Helper::linkToRoute('calendar_interviewfeedback'),
   "interviewfeedbackremind" => OC_Helper::linkToRoute('calendar_interviewfeedbackremind'),
   "setentryresult" => OC_Helper::linkToRoute("calendar_setentryresult"),
   "cancelevent" => OC_Helper::linkToRoute("calendar_cancelevent"),
   "jobsetupurl" => OC_Helper::linkToRoute("jobpos_setup"),
   "alljoblist_url" => OC_Helper::linkToRoute('resumes_joblist',array('alljobs'=>1))
);

// Echo it
foreach ($array as  $setting => $value) {
   echo("var ". $setting ."=\"".$value."\";\n");
}